import VueRouter from 'vue-router'
Vue.use(VueRouter)
import Vue from 'vue'
import Home from '../views/home.vue';
import Mac from '../views/mac.vue';
import Ipad from '../views/ipad.vue';
import Iphone from '../views/iphone.vue';
import Watch from '../views/watch.vue';
import Tech from '../views/tech.vue';
const router=new VueRouter({
    routes:[
        {
            path:'/',
            redirect:'/home',
        },
        {
            path:'/home',
            component:Home
        },
        {
            path:'/mac',
            component:Mac
        },
        {
            path:'/ipad',
            component:Ipad
        },
        {
            path:'/iphone',
            component:Iphone
        },
        {
            path:'/watch',
            component:Watch
        },
        {
            path:'/tech',
            component:Tech
        },
    ]
})
export default router